package com.syp.test.clustercacheflush.util;

/**
 * 常量
 * 
 * @author syp
 *
 */
public final class Constants {

	/**
	 * UTF-8编码
	 */
	public static final String CHARSET_UTF8 = "UTF-8";
	/**
	 * GBK编码
	 */
	public static final String CHARSET_GBK = "GBK";
	/**
	 * UTF-8编码
	 */
	public static final String CHARSET_IOS88591 = "ISO8859-1";
	/**
	 * 应用zk根节点名称
	 */
	public static final String APP_ZK_ROOT_PATH = "/com.syp.test.clustercacheflush";
	/**
	 * 集群缓存刷新节点名称
	 */
	public static final String CLUSTER_CACHE_FLUSH_ZK_NODE_NAME = "cache";
	/**
	 * 集群缓存节点路径
	 */
	public static final String CLUSTER_CACHE_FLUSH_ZK_PATH = APP_ZK_ROOT_PATH + "/" + CLUSTER_CACHE_FLUSH_ZK_NODE_NAME;

	/**
	 * 默认页容量
	 */
	public static final int DEFAULT_PAGE_SIZE = 10;
	/**
	 * 页容量 100
	 */
	public static final int HUNDRED_PAGE_SIZE = 100;
	/**
	 * 页容量 1000
	 */
	public static final int THOUSAND_PAGE_SIZE = 1000;
	/**
	 * 应用任务最大重试次数
	 */
	public static final int TASK_MAX_RETRY_COUNT = 10;
	/**
	 * 应用任务重试间隔
	 */
	public static final int TASK_MAX_RETRY_INTERVAL_MINUTES = 5;

	/**
	 * 每两秒钟执行一次cron表达式
	 */
	public static final String CRON_EVERY_2_SECONDS = "0/5 * * * * ?";;

}
